package com.ljy.tkmodel.service;

import com.ljy.tkmodel.entity.Room;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ljy.tkmodel.entity.vo.RoomConditionVo;
import com.ljy.tkmodel.mapper.RoomMapper;
import com.ljy.tkmodel.util.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2022-03-08
 */
public interface RoomService extends IService<Room> {
    //不写sql语句的insert
    public int noXMLInsert(Room room);

    //最优查询 优化条件查询
    public List<Room> optimizeConditionQuery(HashMap<String,Object> map);
    // 正常sql insert
    boolean insertSql(Room room);

    //录入课程 准备教室
    int SchoolCurriculum(RoomConditionVo roomConditionVo);

    //消息定时任务
    public void putRoomScheduler();

    //测试定时任务
    void putRoomSchedulerTest();
}
